package com.springclouddemo.eurekaclientconsumerfeignfallbackfactory.controllers;

import com.springclouddemo.eurekaclientconsumerfeignfallbackfactory.feign.ProviderFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 何昌杰
 */
@RestController
public class DemoController {
    @Autowired
    private ProviderFeign providerFeign;

    @GetMapping("/hello/{name}")
    public String demo1(@PathVariable("name") String name){
        return providerFeign.demo1(name);
    }
}
